<template>
  <a-button>
    <slot :text="greetingMessage1" :count="1">submit</slot>
    <slot name="footer" :footer="greetingMessage2"></slot>
  </a-button>
</template>

<script setup lang="ts">
  import { ref } from 'vue'
  const greetingMessage1 = ref<string>('hahha1')
  const greetingMessage2 = ref<string>('hahha2')
</script>

<style lang="less" scoped></style>
